<?php
	class baseController extends Controller{
			//不需要登录验证的页面
		private $noLogin = array(
					'index'=>array('checkcode', 'login'),
				);

		public function __construct(){
			parent::__construct();
			if(!(isset($this->noLogin[CONTROLLER]) && in_array(ACTION, $this->noLogin[CONTROLLER]))){
				if(empty($_SESSION)){
					header('Location:?m=admin&c=index&a=login');
					exit();
				}
			}

		}

	}
?>